package com.hanamaki.struct;

public class DoWhileDemo02 {

    public static void main(String[] args) {

        /*摄制温度 */
        double c = 0;
        double h = 0;
        int count = 1;
        System.out.println("摄氏温度\t华氏温度");
        do {
            h = c * 9 / 5 + 32;

            System.out.println(c + "\t" + h);

            c += 20;
            count++;

        } while (c >= 0 && c <= 250 && count <= 10);


    }
}
